package in.abip.chisame.model;

/**
 * MoodHvacs active record.
 * 
 * @author Julot
 * @since Thursday, April 21st, 2011
 */
public class MoodHvacs extends CActiveRecord {
	public Integer moodId = null;
	public Integer hvacId = null;
	public Integer value = null;
	
	public static MoodHvacs model() {
		return new MoodHvacs();
	}
	
	private Mood _mood = null;
	
	public Mood getMood() {
		if (_mood == null) _mood = (Mood) Mood.model().findByPk(moodId);
		return _mood;
	}
	
	private Hvac _hvac = null;
	
	public Hvac getHvac() {
		if (_hvac == null) {
			_hvac = (Hvac) Hvac.model().findByPk(hvacId);
		}
		return _hvac;
	}
}
